<!DOCTYPE HTML>
<html>

<head>
        <title></title>

        <script type="text/javascript">
          function nihao () {
            var img = new Image();
            img.onload=function(){alert("img is loaded")}; 
            img.src = "./map_china.JPG";
            //alert(img.src);
            //img.onreadystatechange = function(){
              
              //if (image.readyState=="complete") { 
                //alert("nihao"); 
              //} 
              var tmp = "";
  
              for ( var p in img )
              {
                  if ( typeof(img[p]) == "function" )
                  {
                      tmp += img[p] + "<br />";
                  }
                  else
                  {
                      tmp += p + " = " + img[p] + "<br />";
                  }
              }
              //window.alert( tmp + "nothing" );
              document.write(tmp);
            //}

          }
        </script>

        <style type="text/css">
        </style>
</head>



<body onload="">


        <script type="text/javascript">
        nihao();
        </script>
</body>



</html>

